package cn.hfatec.shms.web.members.ykManage.dao;

import cn.hfatec.mybatis.mapper.SqlMapper;
import cn.hfatec.shms.web.members.ykManage.model.YkManage;
import cn.hfatec.shms.web.members.ykManage.model.YkManageParams;
import cn.hfatec.shms.web.members.ykManage.model.YkManageView;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
@Component("YkManageDao")
public interface YkManageDao extends SqlMapper {

    /**
     *
     * 查询数据
     *
    */
    public List queryYkManage(@Param("params") YkManageParams params);

    /**
     *
     * 根据主键获取数据
     *
     */
    public YkManageView getYkManageById(Integer id);


    /**
     *
     * 根据主键获取数据
     *
     */
    public YkManageView getYkManageBillId(String billId);


    /**
     *
     * 根据主键获取数据
     *
     */
    public YkManageView getYkManageByFind( @Param("cardId") String cardId);
    /**
     *
     * 插入数据
     *
     */
    public void insert(YkManage ykManage);

    /**
     *
     * 删除数据
     *
     */
    public void delete(Integer id);

    /**
     *
     * 更新数据
     *
     */
    public void update(YkManage ykManage);
}
